<?php
class ApKv extends AppModel {

	var $name = 'ApKv';
	var $validate = array(
		'TEN_AKV' => array(
		'rule' => array('minLength', '5'),
		'message' => 'Chiều dài nhỏ nhất 5 ký tự')
	);

	//The Associations below have been created with all possible keys, those that are not needed can be removed
	var $belongsTo = array(
		'Xa' => array(
			'className' => 'Xa',
			'foreignKey' => 'xa_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);

	var $hasMany = array(
		'Nongho' => array(
			'className' => 'Nongho',
			'foreignKey' => 'ap_kv_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		)
	);

}
?>